package cate.common.table.pvp.guildrace;

import cate.common.table.ERow;
import cate.common.table.XSSFRowWrap;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

@NoteClass(value = "协会PVP 基础")
public class GuildRaceBaseRow extends ERow {

    @NoteField(value = "开启日期")
    public String openDate;

    @NoteField(value = "投票次数")
    public int voteTimes;

    @NoteField(value = "猜中奖励")
    public String voteWinReward;

    @NoteField(value = "参与奖励")
    public String voteJoinReward;

    @NoteField(value = "最低活跃度")
    public int minActive;

    @Override
    public void parse(XSSFRowWrap xrw) {
        super.parse(xrw);
        this.openDate = xrw.getString("开启日期");
        this.voteTimes = xrw.getInteger("投票次数", 3);
        this.voteWinReward = xrw.getString("猜中奖励");
        this.voteJoinReward = xrw.getString("参与奖励");
        this.minActive = xrw.getInteger("最低活跃度", 250);
    }
}
